package com.practice;

import static java.lang.StrictMath.*;

public class MainClass01 {
    public static void main(String[] args) {
        //public static int abs(int a)返回参数的绝对值
        int num1 = abs(-10);

//      public static double ceil(double a)返回大于或等于参数的最小double值，等于一个整数
        double num2 = ceil(10.5);

//      public static double floor(double a)返回小于或等于参数的最大double值，等于一个整数
        double num3 = floor(10.5);

//      public static int round(float a)按照四舍五入返回最接近参数的
        long num4 = round(10.5);

//      intpublic static int   max(int a,int b)返回两个int值中的较大值
        int num5 = max(10, 20);

//      public static int min(int a,int b)返回两个int值中的较小值
        int num6 = min(10, 20);

//      public static double pow (double a,double b)返回a的b次幂的值
        double num7 = pow(2, 3);

//      public static double random()返回值为double的正值，[0.0,1.0)
        double num8 = random();

        System.out.println(num1);
        System.out.println(num2);
        System.out.println(num3);
        System.out.println(num4);
        System.out.println(num5);
        System.out.println(num6);
        System.out.println(num7);
        System.out.println(num8);
    }
}
